import React, { useState } from 'react'

function App() {
  const [count, setcount] = useState(0)
  const jia = () => {
    setcount(count + 1)
  }
  return (
    <div>
      <button onClick={jia}>+</button>
      <span>{count}</span>
    </div>
  )
}

export default App